#include"GlobalHeader.h"

void sighandler(int signal)
{
    if(signal==SIGALRM)
    {
        system("clear");
        alarm(5);
    }
}
int main()
{
    signal(SIGALRM, sighandler);
    alarm(5);
    while(1)
    {
        printf("我是一个进程\n");
        sleep(1);
    }
    return 0;
}